<?php $this->_extends('_layouts/default_layout'); ?>

<?php $this->_block('title'); ?> - 欢迎<?php $this->_endblock(); ?>

<?php $this->_block('contents'); ?>
<?php foreach($articles as $article): ?>
<a href="<?php echo url('default/view',array('id'=>$article->id)); ?>"><strong><?php echo $article->title; ?></strong></a><br>
<em><?php echo $article->formatcreated; ?></em>
<?php echo substr($article->formatbody,0,100); ?>
<div style="text-align: right;"><a href="<?php echo url('default/view',array('id'=>$article->id)); ?>">View all >>>></a></div>
<?php endforeach; ?>
<?php $this->_endblock('contents'); ?>
